home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Network Login Win 2.xpl < prev    next >
Text File  |  1999-10-21  |  1KB  |  57 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Network\Login\3) Inside Login Window"
  5. "NAME"="Options (Windows 95/98)"
  6. "VERSION"="1.02"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Show "Cancel" button in Login window"
  9. "DESCRIPTION 1"="If the "Cancel" button is enabled, it is possible to use the computer without login."
  10. "DESCRIPTION 2"="If disabled, a user needs to supply a valid account to use the computer."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14. "COMMENT 2"="Thanks to CptSiskoX for his help!"
  15.  
  16.  
  17. sV1="HKLM\Network\Logon\MustBeValidated" 'DW
  18.  
  19. Sub Plugin_Initialize 
  20.  If GetWinVer=1 or GetWinVer=3 then
  21.   
  22.     i=RegReadValue(sv1)
  23.     If IsEmpty(i)=true then 
  24.        SetUIElement 1,true
  25.     else
  26.        if i=0 then
  27.           SetUIElement 1,true
  28.        end if
  29.     end if
  30.  
  31.  else
  32.   Disable
  33.  end if
  34. End Sub
  35.  
  36. Sub Plugin_CheckData(ElementIndex)
  37. End Sub
  38.  
  39. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  40.  b=GetUIElement(1)
  41.  if b=true then
  42.     i=0
  43.  else
  44.     i=1
  45.  end if
  46.  Call RegWriteValue(sV1,i,2)
  47.  
  48.  
  49.  Call Logoff
  50. End Sub
  51.  
  52. Sub Plugin_Terminate 
  53. End Sub
  54.  
  55.  
  56.  
  57.